package test.App.Demo;

public class GoldCard extends Card{

    public GoldCard(String name, String CarId, String phone, double money) {
        super(name, CarId, phone, money);
    }

    @Override
    public void payMoney(double money) {
        System.out.println("当前消费" + money);
        System.out.println("优惠后的价格"+ money * 0.8);
        super.payMoney(money * 0.8);
        System.out.println("当前余额" + getMoney());
    }
}
